package com.example.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.Department;
import com.example.demo.entity.Role;
import org.springframework.stereotype.Service;

/**
 * @author moguai
 * @version 1.0
 * @date 2022/3/18 16:28
 */
@Service
public interface DepartmentService extends IService<Department> {
    /**
     * 插入部门
     * @param id
     * @param name
     */
    void insertDepartment(Integer id, String name);

    /**
     * 更新部门
     * @param id
     * @param name
     */
    void UpdateDepartment(Integer id,String name);

    /**
     * 删除部门
     * @param id
     */
    void DeleteDepartment(Integer id);

    /**
     * 更改部门信息
     * @param id
     * @return
     */
    Department SelectDepartment(Integer id);
}

